import QtQuick
import QtQuick.Controls

Window{
    id: debugWindow
    objectName: "DebugWindow"
    width: 320
    height: 480
    visible: true

    Item {
        anchors.fill: parent
        Flickable {
            anchors.fill: parent
            anchors.leftMargin: 10
            anchors.rightMargin: 10
            anchors.bottomMargin: 30
            contentHeight: column.implicitHeight
            Column {
                id: column
                spacing: 0
                Repeater {
                    model: CLongScreenShot.model()
                    delegate: Image {
                        source: "file:///" + display
                    }
                }
            }
        }

        Item {
            anchors.bottom: parent.bottom
            height: 30

            Row {
//                Button {
//                    text: "取消"
//                }

                Button {
                    text: "保存"
                    onClicked: CLongScreenShot.save();
                }

                Button {
                    text: "继续截图"
                    onClicked: CLongScreenShot.scrollAndGrab();
                }
            }
        }
    }

}
